import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    commentId:null,
    songList:[],
    songId:null, // 歌手id
    mvId:[],
    xiangIds:[], //歌单详情id
    zhuanjiId:[], // 专辑Id
    gedanSongId:[] //歌单列表的所有歌曲id
  },
  mutations: {
    getCommId(state,id){
      state.commentId = id
    },
    newSong(state,newData){
      state.songList = newData
    },
    getSongId(state,id){
      state.songId = id
    },
    // 歌单mvid
    getMvId(state,ids){
      state.mvId = ids
    },
    // 歌单详情id
    getXinag(state,ids){
      state.xiangIds = ids
    },
    getZhuanjiId(state,ids){
      state.zhuanjiId = ids
    },
    getGedanSongId(state,ids){
      state.gedanSongId = ids
    }
  },
  actions: {
  },
  modules: {
  }
})
